import request from "../utils/request";

export function allComplaint(startpage,pagesize){
    return request({
        url: '/ps/pmComplain/selectComplain',
        method: 'get',
        params:{
            startpage: startpage,
            pagesize: pagesize
        }
    })
}

export function search(formInline){
    return request({
        url: '/ps/pmComplain/selectMH',
        method: 'post',
        data: formInline
    })
}

export function select(){
    return request({
        url: '/ps/pmDispose/selectDispose',
        method: 'get'
    })
}

export function updateDispose(userFrom){
    return request({
        url: '/ps/pmComplain/updateDispose',
        method: 'post',
        data: userFrom
    })
}


export function insertComplain(userFrom){
    return request({
        url: '/ps/pmComplain/insertComplain',
        method: 'post',
        data: userFrom
    })
}